.fitnessApp {
  padding: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.header {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.calendarSection {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  backdrop-filter: blur(10px);
}

.calendarHeader {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: white;
  font-weight: bold;
}

.calendarGrid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendarDay {
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 12px;
}

.workoutDay {
  background: #38ef7d;
  color: #000;
  font-weight: bold;
}

.restDay {
  background: rgba(255, 255, 255, 0.1);
}

.avatarSection {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.avatarUpload {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.avatarImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.uploadText {
  color: white;
  font-size: 14px;
  text-align: center;
}

.generateBtn {
  background: #6a11cb;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;

  &:hover {
    background: #2575fc;
  }
}

.uploadProgress {
  text-align: center;
  color: white;
}

.progressBar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  margin: 8px 0;
  overflow: hidden;
}

.progressFill {
  height: 100%;
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  transition: width 0.3s ease;
}

.workflowStatus {
  font-size: 12px;
  margin-top: 4px;
}

.statsSection {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 24px;
}

.sectionTitle {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

.chartContainer {
  margin-bottom: 30px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.chartTitle {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 16px;
  text-align: center;
  color: #333;
}

.legendContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.legendItem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.legendColor {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.legendText {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.workoutStats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.statCard {
  background: linear-gradient(135deg, #667eea, #764ba2);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  color: white;
}

.statLabel {
  font-size: 14px;
  margin-bottom: 8px;
  opacity: 0.9;
}

.statValue {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 4px;
}

.imageDescription {
  text-align: center;
  color: #666;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
  }
  
  .workoutStats {
    grid-template-columns: 1fr;
  }
  
  .legendContainer {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .legendItem {
    width: 100%;
    justify-content: center;
  }
}
